package day1;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class SystemTest {
    public static void main(String[] args) {
        //native干嘛：
        System.out.println();
        long time=System.currentTimeMillis();
        System.out.println(time);
        int []ar={1,3,6,8,9,11,14};
        int a2[]=new int[20];
        long start=System.nanoTime();
        System.arraycopy(ar,2,a2,3,4);
        System.out.println(Arrays.toString(a2));
        System.arraycopy(ar,0,ar,3,2);
        long end=System.nanoTime();
        System.out.println(Arrays.toString(ar));
        System.out.println("耗时:"+(end-start)+"纳秒");
    }
}
